Skip to content

Fix/pdf conversion and institution mappings#3

Merged
HanssonMagnus merged 4 commits intomainfrom
fix/pdf-conversion-and-institution-mappings
Nov 9, 2025
Merged

Fix/pdf conversion and institution mappings#3
HanssonMagnus merged 4 commits intomainfrom
fix/pdf-conversion-and-institution-mappings

Conversation

@HanssonMagnus
Copy link
Copy Markdown
Owner

No description provided.

- Fix PDF conversion to handle None/string/bytes returns from textract
- Improve error handling (remove unnecessary exception re-raising)
- Add Central Bank of Eswatini to institutions list
- Add institution aliases: Banco de Portugal, Saudi Central Bank
- Update test to reflect improved error handling
- Add Known Limitations section to README
- Document PDF encoding issues in API docs
- Explain that ~8% of PDFs may fail conversion due to source PDF encoding issues
- Clarify this is a PDF quality issue, not a code bug
- Add recategorize_unknown_files() function to re-categorize files from unknown folder
- Automatically called after scraping completes
- Moves both PDFs and corresponding text files together
- Uses updated institution mappings to move files to correct folders
- Cleans up empty unknown folders for both PDFs and texts
- Makes package more robust when institution mappings are updated
- Add comprehensive test coverage (8 tests) for all scenarios
- Handle edge cases: missing PDFs, missing text files, partial re-categorization
… adjust the start date for scraping from 2025-10-01 to 2025-08-01.
@HanssonMagnus HanssonMagnus merged commit 55d4d06 into main Nov 9, 2025
3 checks passed
@HanssonMagnus HanssonMagnus deleted the fix/pdf-conversion-and-institution-mappings branch November 9, 2025 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant